package routers

import (
	"docker/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/register", &controllers.UserController{}, "POST:Register")
	beego.Router("/login", &controllers.UserController{}, "POST:Login")
	beego.Router("/add", &controllers.DockerController{}, "POST:Add")
	beego.Router("/list", &controllers.DockerController{}, "GET:List")
	beego.Router("/info", &controllers.DockerController{}, "GET:Info")
	beego.Router("/up", &controllers.DockerController{}, "GET:Up")
	beego.Router("/rank", &controllers.DockerController{}, "GET:Rank")
}
